take (someone) down a peg

Translations
remettre quelqu’un à sa place
Definitions
To reduce someone's confidence or status, often by criticizing or humbling them.